package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商城商品规格对象 kk_product_spec
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
public class KkProductSpec extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long proId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private BigDecimal price;

    /** 积分 */
    @Excel(name = "积分")
    private BigDecimal integral;

    /** 市场价格 */
    @Excel(name = "市场价格")
    private BigDecimal marketPrice;

    /** 库存 */
    @Excel(name = "库存")
    private Integer stock;

    /** 标识 */
    @Excel(name = "标识")
    private String ks;

    /** 图片 */
    @Excel(name = "图片")
    private String pic;

    /** 添加时间 */
    @Excel(name = "添加时间")
    private Integer time;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long creator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createDate;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setProId(Long proId) 
    {
        this.proId = proId;
    }

    public Long getProId() 
    {
        return proId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setIntegral(BigDecimal integral) 
    {
        this.integral = integral;
    }

    public BigDecimal getIntegral() 
    {
        return integral;
    }
    public void setMarketPrice(BigDecimal marketPrice) 
    {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getMarketPrice() 
    {
        return marketPrice;
    }
    public void setStock(Integer stock) 
    {
        this.stock = stock;
    }

    public Integer getStock() 
    {
        return stock;
    }
    public void setKs(String ks) 
    {
        this.ks = ks;
    }

    public String getKs() 
    {
        return ks;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setTime(Integer time) 
    {
        this.time = time;
    }

    public Integer getTime() 
    {
        return time;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("proId", getProId())
            .append("name", getName())
            .append("price", getPrice())
            .append("integral", getIntegral())
            .append("marketPrice", getMarketPrice())
            .append("stock", getStock())
            .append("ks", getKs())
            .append("pic", getPic())
            .append("time", getTime())
            .append("updateTime", getUpdateTime())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .toString();
    }
}
